<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    
    <head>
        <title>Login </title>
    </head>
    <body>
        
        <div id="top" class="top" style="background:#ADD8E6;">
           <h:graphicImage value="/resources/imagens/logoFinal.png" style="float:center" alt="rf" />
        </div>
        
        
        <h:form id="form">  
  
    <p:panel id="panel">  
  
        <p:messages id="msgs"/>  
  
        <h:panelGrid columns="3">  
            <h:outputLabel for="firstname" value="Login: *" />  
            <p:inputText id="firstname" value="#{Loginbean.login.usuarioLogin}" required="true" label="Firstname">  
                <f:validateLength minimum="2" />  
            </p:inputText>  
            <p:message for="firstname" display="icon"/>  
  
            <h:outputLabel for="surname" value="Senha: *" />  
            <p:inputText id="surname" value="#{Loginbean.login.usuarioSenha}" label="Surname" required="true">  
                <f:validateLength minimum="2" />  
                <p:ajax update="msgSurname" event="keyup" />  
            </p:inputText>  
            <p:message for="surname" id="msgSurname" display="icon"/>  
  
        </h:panelGrid>  
  
        <p:commandButton id="btn" value="Save" update="panel" action="#{Loginbean.gravar}"/>  
    </p:panel>  
  
</h:form>  
        
					
    </body>
</html>
